package fr.mywiki.business.structure;

/**
 * A perimeter is the rule of access to an action, an object,... For example, it
 * can be the consultation perimeter of an antry, that is to say the set of
 * structures whose accounts are allowed to consult the entry. So the
 * rule/perimeter is : "Every account inside the authorized structures".
 * 
 * @deprecated
 */
public class Perimeter {
	/** Everyone can perform, connected or not */
	protected static final int NO_CONTROL_TYPE = 0;

	/**
	 * Only the connected users (an account in the session) can perform, whatever
	 * the structure of the account.
	 */
	protected static final int ONLY_CONNECTED = 1;
	
	/** Only the structures inside the allowed ones can perform. */
	protected static final int ALLOWED_STRUCTURES = 2;

	protected int perimeterType = NO_CONTROL_TYPE;

	public Perimeter() {
		perimeterType = NO_CONTROL_TYPE;
	}
	
	
}
